package org.dromara.business.service;

import org.dromara.business.domain.VolunteerDetails;
import org.dromara.business.domain.vo.VolunteerDetailsVo;
import org.dromara.business.domain.bo.VolunteerDetailsBo;
import com.baomidou.mybatisplus.extension.service.IService;
import org.dromara.common.mybatis.core.page.TableDataInfo;
import org.dromara.common.mybatis.core.page.PageQuery;

import java.util.Collection;
import java.util.List;

/**
 * 志愿者详细信息Service接口
 *
 * @author zlj
 * @date 2025-01-18
 */
public interface VolunteerDetailsService extends IService<VolunteerDetails> {

    /**
     * 查询志愿者详细信息
     */
    VolunteerDetailsVo queryById(Long userId);

    /**
     * 查询志愿者详细信息列表
     */
    TableDataInfo<VolunteerDetailsVo> queryPageList(VolunteerDetailsBo bo, PageQuery pageQuery);

    /**
     * 查询志愿者详细信息列表
     */
    List<VolunteerDetailsVo> queryList(VolunteerDetailsBo bo);

    /**
     * 新增志愿者详细信息
     */
    Boolean insertByBo(VolunteerDetailsBo bo);

    /**
     * 修改志愿者详细信息
     */
    Boolean updateByBo(VolunteerDetailsBo bo);

    /**
     * 校验并批量删除志愿者详细信息信息
     */
    Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);
}
